//
//  ZBNavigationItem.h
//  YouHui
//
//  Created by  on 11-11-24.
//  Copyright (c) 2011年 netease. All rights reserved.
//

#import <Foundation/Foundation.h>

@class ZBNavigationItem;

@protocol ZBNavigationItemDelegate <NSObject>
-(void)navigationItemUpdated:(ZBNavigationItem*)item;
-(void)loadingStart:(ZBNavigationItem*)item;
-(void)loadingComplete:(ZBNavigationItem*)item;
@end

@interface ZBNavigationItem : NSObject {
    UIView *_titleView;
    UIView *_rightView;
    UIView *_leftView;
    UILabel *_titleLabel;
    id<ZBNavigationItemDelegate> _delegate;
	BOOL _isLoading;
	BOOL _hideTitle;
}
@property(nonatomic,retain) NSString *title;
@property(nonatomic,readonly) UILabel *titleLabel;
@property(nonatomic,retain) UIView *titleView;
@property(nonatomic,retain) UIView *rightView;
@property(nonatomic,retain) UIView *leftView;
@property(nonatomic,assign) id<ZBNavigationItemDelegate> delegate;
@property(nonatomic,assign) BOOL isLoading;
@property(nonatomic,assign) BOOL hideTitle;
@end
